﻿using System;
using System.Linq.Expressions;
using WebApplication1.Core.Domain.Entities;

namespace WebApplication1.Core.Domain.RepositoryContracts {
    public interface IXiangxixinxiRepository {
        public Task<Xiangxixinxi?> GetXiangxixinxiByXiangxixinxiID(ushort XiangxixinxiID);
        public Task<IEnumerable<Xiangxixinxi>> GetAllXiangxixinxi();
        public Task<IEnumerable<Xiangxixinxi>> GetFilteredXiangxixinxi(Expression<Func<Xiangxixinxi, bool>> expression);

        public Task<Xiangxixinxi> AddXiangxixinxi(Xiangxixinxi Xiangxixinxi);

        public Task<bool> UpdateXiangxixinxi(Xiangxixinxi Xiangxixinxi);

        public Task<bool> DeleteXiangxixinxi(ushort XiangxixinxiID);
    }
}
